<?php

include ("../include/config.php");
require($config['basedir']."/admin/classes/action.class.php");
$post =   $_REQUEST ;

$obj_ac 	=  new Action();			
$_action = isset($_REQUEST['action']) ? $_REQUEST['action'] : 'view';

switch($_action)
{
		case 'addNewUser':
			$obj_ac->addUser($post);
		case 'getCategories': 
			$obj_ac->getCategoriesXML($post);
		break;
		case 'getQuestions':
			$obj_ac->getQuestions($post);
		break;
		case 'submitTrivia':
			$obj_ac->submitTrivia($post);
		break;
		case 'updateUser':
			$obj_ac->updateUser($post);
		break;
}		
?>
